﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace KhaoSatSinhVienTotNghiep.Model
{
    public partial class LoaiK
    {
       private static KhaoSatSVTNDataContext context = new KhaoSatSVTNDataContext();
       public static List<LoaiK> GetAllLoaiKS()
       {
           return context.LoaiKs.ToList();
       }

       public static LoaiK GetByMaLoai(string maLoaiKS)
       {
           return context.LoaiKs.Where(ml => ml.MaLoai == maLoaiKS).FirstOrDefault();
       }
    }
}
